//
//  Persion.h
//  OCDemo
//
//  Created by wxf on 2024/8/4.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface Persion : NSObject 

//如果要让成员变量被继承，需要手动生成
@property(nonatomic, assign) int age;
@property(nonatomic, assign) int sex;
@property(nonatomic, assign) int height;
@property(nonatomic, assign) int weight;
@property(nonatomic, copy) NSString *name;


//初始化方法
-(id)initWithAge:(int)age;
-(id)initWithName:(NSString *)name;
-(id)initWithNameAndAge:(NSString *)name andAge:(int)age;

-(void)run;

@end

NS_ASSUME_NONNULL_END
